import 'package:flutter/material.dart';

import '../../foundation/decoration/public_box_shadow.dart';

/// FileName radius_container
///
/// @Author lax
/// @Date 2023/6/28
///
/// @Description

class RadiusContainer extends Container {
  RadiusContainer({
    super.key,
    super.width,
    super.height,
    super.margin,
    super.padding,
    super.alignment,
    super.child,
    double? radius = 5,
    Color? color = Colors.white,
    Color? shadowColor,
    Decoration? decoration,
    BorderRadius? borderRadius,
  }) : super(
          decoration: decoration ??
              BoxDecoration(
                color: color,
                boxShadow: shadowColor == null
                    ? null
                    : [PublicBoxShadow(color: shadowColor)],
                borderRadius:
                    borderRadius ?? BorderRadius.circular(radius ?? 0),
              ),
        );
}
